package top.huxy.boot.model.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author huxy
 * @date 2021-09-18
 **/
@Data
@NoArgsConstructor
public class ScheduleJobLog implements Serializable {

    /**
     * 任务日志id
     **/
    private Integer logId;

    /**
     * 任务id
     **/
    private Integer jobId;

    /**
     * 任务执行结果
     **/
    private Boolean status;

    /**
     * 任务过程日志
     **/
    private String desc;

    /**
     * 任务返回值
     **/
    private String result;

    /**
     * 耗时（单位：毫秒）
     **/
    private Integer times;

    /**
     * 创建时间
     **/
    private long createTime;

    public ScheduleJobLog(Integer jobId, Boolean status, String desc, String result, Integer times, long createTime) {
        this.jobId = jobId;
        this.status = status;
        this.desc = desc;
        this.result = result;
        this.times = times;
        this.createTime = createTime;
    }
}
